package com.promfy.async.asyncandhttpconnection;

import android.app.ProgressDialog;
import android.content.Context;
import android.os.AsyncTask;

public class GetTask extends AsyncTask<Object, Void, String> {
	Context mContext;
	ProgressDialog mDialog = null;

	void GetPhotoFeedTask(Context context) {
		mContext = context;
	}

	@Override
	protected void onPreExecute() {
		super.onPreExecute();

		mDialog = new ProgressDialog(mContext);
		mDialog.setMessage("Please wait...");
		mDialog.show();
	}

	@Override
	protected String doInBackground(Object... params) {
		return null;
		// do stuff in background : fetch response
	}

	@Override
	protected void onPostExecute(String result) {
		super.onPostExecute(result);
		setProgressBarIndeterminateVisibility(false);
		// mDialog.dismiss();
	}

	private void setProgressBarIndeterminateVisibility(boolean b) {
		// TODO Auto-generated method stub

	}
}
